/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.jms.Message;
import javax.jms.MessageListener;

/**
 *
 * @author juan
 */
@MessageDriven(mappedName = "jms/send", activationConfig = {
    @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
    @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
})
public class SenderMDB implements MessageListener {

    public SenderMDB() {
    }

    @Override
    public void onMessage(Message message) {
        //TODO Realizar la logica de negocio para el envio
    }
}
